//
//  MBProgressHUD+YWK.h
//  YWKUser
//  加载loading圈圈
//  Created by LiYijia on 16/4/29.
//  Copyright © 2016年 iCareTech. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import "MBProgressHUD.h"

@interface MBProgressHUD (TC)
/**
 *  @brief  second秒自动消失
 *  @return MBProgressHUD
 */
+ (MBProgressHUD *)hubWithTitle:(NSString *)title
                         second:(NSInteger)second
                         toView:(UIView *)view;


/**
 *  @brief  添加一个loading hud到界面上
 */
+ (MBProgressHUD *)addProgressLoadingAddToView:(UIView *)view;


+ (MBProgressHUD *)YWKProgressLoading;


/**
 *  在view的中心添加MBProgressHUD
 *
 *  @param view 添加HUD的view
 *
 *  @return MBProgressHUD
 */
+ (MBProgressHUD *)YWKProgressLoadingInView:(UIView *)view;

/**
 *  @brief  2秒自动消失
 *  @return MBProgressHUD
 */
+ (MBProgressHUD *)hubWithTitle:(NSString *)title toView:(UIView *)view;
@end
